xfi:precision

xs:anyAtomicType=xfi:precision( $item as schema-element(xbrli:item))

Last updated on 18-06-2010 at 00:00:00.

Return the actual or the inferred precision of a numeric fact.

XBRL 2.1 Section 4.6.6

XBRL 2.1 Example 13, Inferring Precision from Decimals

OIM Status

Deprecated - this function may be used in OIM-compatible Formula Rules, but its use is not recommended.

Parameters

Name Type Details
item schema-element(xbrli:item) The numeric item that precision is required for.

Output

Type: xs:anyAtomicType

Return the actual or the inferred precision of a numeric fact. For "INF" the returned type is xs:string. For numeric precision value, the returned type is xs:NonNegativeInteger.

Errors

Code Details
xfie:ItemIsNotNumeric This error is thrown if the item is not reported with a precision or decimals attribute (except for fraction, which returns INF to correspond to base spec).

Conformance suite

80153 xfi.precision testcase.xml [ download ]

Owners

Name Affiliation Email Start End
Geoff Shuetrim Galexy geoff@galexy.net 14-02-2008 at 00:00:00
Herm Fischer UBMatrix / Mark V Systems fischer@markv.com 18-06-2010 at 00:00:00

Revisions

Name On Details
Geoff Shuetrim 23-01-2008 at 00:00:00 Defined the function.
Herm Fischer 23-01-2008 at 00:00:00 Clarified return type. Corrected ItemIsNotNumeric to allow fractions (they return INF per 2.1 spec).
Herm Fischer 18-06-2010 at 18:55:00 Removed error code xqt-err:XPTY0004, as that is currently listed in the spec for functions applying to all functions.